<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}

<div class="x-nav">
	<span class="layui-breadcrumb">
		<a>首页</a>
		<a>系统设置</a>
		<a>添加菜单</a>
	</span>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
		<i class="layui-icon" style="line-height:30px">ဂ</i>
	</a>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin:3px 5px 0 0;float:right" href="?m={$m}&c={$c}" title="返回">
		<i class="layui-icon" style="line-height:30px">&lt;</i>
	</a>
</div>

<div class="x-body">
	<div class="layui-main">
		<form class="layui-form ajaxform" action="?">
			<input type="hidden" name="m" value="{$m}" />
			<input type="hidden" name="c" value="{$c}" />
			<input type="hidden" name="a" value="{$a}" />
			<input type="hidden" name="id" value="{$id}" />
			<div class="layui-form-item">
				<label class="layui-form-label">上级分类：</label>
				<div class="layui-input-inline">
					<select name="data[pid]" lay-filter="pid">
						<option value="0">顶级分类</option>
						{$select_categorys}
					</select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">名称：</label>
				<div class="layui-input-inline"><input type="text" name="data[name]" required="true" value="{$data['name']}" placeholder="请输入菜单名称" autocomplete="off" class="layui-input"></div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">模块名（M）：</label>
				<div class="layui-input-inline"><input type="text" name="data[m]" value="{$data['m']}" placeholder="请输入模块名（M）" autocomplete="off" class="layui-input"></div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">文件名（C）：</label>
				<div class="layui-input-inline"><input type="text" name="data[c]" value="{$data['c']}" placeholder="请输入文件名（C）" autocomplete="off" class="layui-input"></div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">方法名（A）：</label>
				<div class="layui-input-inline"><input type="text" name="data[a]" value="{$data['a']}" placeholder="请输入方法名（A）" autocomplete="off" class="layui-input"></div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">排序：</label>
				<div class="layui-input-inline"><input type="text" name="data[sort]" value="{$data['sort']}" placeholder="请输入排序，越打越靠前" autocomplete="off" class="layui-input"></div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">显示：</label>
				<div class="layui-input-block">
					<input type="radio" name="data[hide]" value="0" title="是"{if !$data['hide']} checked="checked"{/if}>
					<input type="radio" name="data[hide]" value="1" title="否"{if $data['hide']} checked="checked"{/if}>
				</div>
			</div>
			
			<div class="layui-form-item">
				<div class="layui-input-block"><button class="layui-btn" type="submit">确定</button></div>
			</div>
		</form>
	</div>
</div>

{template index/footer}